import { createApp, h } from 'vue'
import App from './App.vue'

import registerGlobalComponentFn from './components'

// 引入pinia库
import { createPinia } from 'pinia'

// 路由
import router from './router'

// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const pinia = createPinia()

const app = createApp(App)

// 全局组件
registerGlobalComponentFn(app)
// pinia
app.use(pinia)
app.use(router)
app.use(ElementPlus)

app.mount('#app')
